home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr48
/
pasclern.zip
/
DUMBCONV.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-04-01
|
428b
|
20 lines
PROGRAM temperature_conversion;
VAR a1,a2,a3 : INTEGER;
BEGIN
WRITELN('Centigrade to farenheight temperature table');
WRITELN;
FOR a1 := -2 TO 12 DO
BEGIN
a2 := 10*a1;
a3 := 32 + a2*9 DIV 5;
WRITE(' C =',a2:5);
WRITE(' F =',a3:5);
IF a2 = 0 THEN
WRITE(' Freezing point of water');
IF a2 = 100 THEN
WRITE(' Boiling point of water');
WRITELN;
END;
END.